/*
@ClassName ErrorResult
@Description TODO
@Author SubUp
@Date   2023/4/20
@Version 1.0
*/

package com.example.javaserve.result.impl;

import com.example.javaserve.enums.ResultEnum;
import com.example.javaserve.result.Result;

import java.util.List;

public class ErrorResult<T> extends Result<T> {
    public ErrorResult() {
        super(ResultEnum.ERROR.getCode(), ResultEnum.ERROR.getValue());
    }

    public ErrorResult(String message) {
        super(ResultEnum.ERROR.getCode(), message);
    }

    public ErrorResult(Integer code, String message) {
        super(code, message);
    }

    public ErrorResult(Integer code, String message, List<T> data) {
        super(code, message, data);
    }

    public ErrorResult(List<T> data) {
        super(ResultEnum.ERROR.getCode(), ResultEnum.ERROR.getValue(), data);
    }
}
